# -*- coding: utf-8 -*-
from mod.client.ui.controls.imageUIControl import ImageUIControlfrom legendaryPowerClientScript.ui.base.imageComponent import ImageComponentfrom mod.client.ui.controls.progressBarUIControl import ProgressBarUIControlfrom legendaryPowerClientScript.ui.base.baseComponent import BaseComponentclass ProgressRingComponent(ImageComponent):
    """
    对应原生的进度条控件，没啥好说的
    """

    def SetValue(self, value):
        """
        设置进度条的进度百分比。若想要逐渐上升/下降，可使用 ProgressBarTween，如：

        bar = ProgressBarTween(ae[2], toExp, 60, False)
        barComp.addTween(bar)

        Args:
            value (float): 百分比，0~1
        """
        pass

